<form  method="get" id="" class="formbody">
        <div id="usual1" class="usual">
                <ul class="seachform1">
                <li>
                         <label>用户id</label>
                         <input type="text" name="uid" value="" class="scinput1"/>
                </li>
                <li>
                         <label>手机号</label>
                         <input type="text" name="phone" value="" class="scinput1"/>
                </li>
                </ul>
                             
                <ul class="seachform1">
                    <li class="sarchbtn">
                        <label>&nbsp;</label>
                        <input name="" id="searchBtn" type="submit" class="scbtn" value="查询"/>
                        <input name="" id="resetBtn"  type="reset" class="scbtn1" value="重置"/>
                    </li>
                </ul>
            
                <div class="formtitle">
                <span>用户列表--共查到<?php echo empty($page['total'])?0:$page['total'];?>条用户信息--</span>
         </div>
</form>

    <div class="rightinfo" style="width:1000px;margin:0 auto;">
  
 <?php if (!empty($list)){?>
   <form id="" action="" method="post">
    <table class="tablelist" >
    	<thead style="width:940px;">
    	<tr>
	        <th style="width:100px;">用户id<i class="sort"><img src="<?php echo base_url('houtai/images/px.gif');?>" /></i></th>
	        <th style="width:120px;">用户昵称</th>
	        <th style="width:120px;">手机号码</th>
	        <th style="width:300px;">微信唯一标识</th>
	        <th>操作</th>
        </tr>
        </thead>
        
        <tbody>
        	<?php foreach ($list as $k=>$v){?>
	        <tr>
		        <td><?php echo $v['id']?></td>
		        <td><?php echo $v['nickname']?></td>
		        <td><?php echo $v['phone']?></td>
		        <td><?php echo $v['wxOpenID']?></td>
		        <td>
		        	<a href="javascript:;" onclick="choose(<?php echo $v['id'].",'".$v['nickname']."','".$v['wxOpenID']."'"?>)" class="tablelink">确定选择</a>  
		       </td>
	        </tr> 
        	<?php }?>
        </tbody>
    </table>
	</form>
   <?php }else{?>
     <span>没有相关用户信息</span>
   <?php }?>
   
   <?php echo page($page['page'],$page['total'],$page['size'],$page['pagesize'],$class='page',$type=1); ?>
   </div>
   <script type="text/javascript" src="<?php echo base_url('houtai/js/layer/layer.js');?>" type="text/javascript"></script>
   <script>
		function choose(uid,uname,wxopenid){
			
			if( wxopenid == '' ){
				alert('微信唯一标识不得为空');
				return false;
			}
			
			window.parent.choseUser(uid,uname,wxopenid);
			window.parent.choseClose();
		}
   </script>
  


